package com.dongdongshop.controller;

import com.dongdongshop.service.ItemPageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ItemPageController {
    @Autowired
    private ItemPageService itemPageService;
    @RequestMapping("itemPage")
    @ResponseBody
    private String itemPage(Long goodsId){
        itemPageService.itemPage(goodsId);/*生成静态页面*/
        return "OK";
    }
}
